//
//  IndexRightButton.m
//  CarTown
//
//  Created by 熊浩 on 15/8/1.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "IndexRightButton.h"

@implementation IndexRightButton
+(instancetype)right{
    IndexRightButton *right=[[[NSBundle mainBundle]loadNibNamed:@"IndexRightButton" owner:nil options:nil]lastObject];
    return right;
}
- (IBAction)rightclick:(id)sender {
    if ([_rightclickdelegate respondsToSelector:@selector(rightclick)]) {
        [_rightclickdelegate rightclick];
    }
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
